package logic

import (
	"user_srv/model/mysql"
	"user_srv/user_proto"
)

func ModelToResponse(user mysql.User) user_proto.UserInfo {
	userInfoResponse := user_proto.UserInfo{
		Id:       int64(user.ID),
		NickName: user.NickName,
		Mobile:   user.Mobile,
		Password: user.Password,
		BirthDay: user.BirthDay,
		Sex:      int64(user.Sex),
		Age:      int64(user.Age),
	}
	return userInfoResponse
}
